<%@ include file="/common/taglibs.jsp"%>
<script>
jQuery(document).ready(function(){
	jQuery("#classYearForm").validate();
});
</script>

<div style="padding:5px;" align="center">
	<!-- <span class="head-dec">Enter Class Details</span> --><br/><br/>
	<s:form id="classYearForm" name="classYearForm" action="saveOrUpdateClassYear" method="post">
	<table border="0">
	   	<tr>
	   		<td class="inputField" nowrap="nowrap">
	   			Name <label style="color:red;">*</label>
	   		</td>
		<td class="inputTextBox">
				<s:textfield name="classYear.name" cssClass="required" id="saveOrUpdateClassYear_classYear_name" required="true"  style="width:250px;" />		
			</td>
	   </tr>
	   <tr><td>&nbsp;</td></tr>
	   <tr>
		   	<td class="inputField" nowrap="nowrap">		
				Status
		   	</td>
		  	<td class="inputTextBox">
				<s:radio name="classYear.status" id="saveOrUpdateClassYear_classYear_status"  list="#{'Active':'Active','InActive':'InActive'}"  value="%{classYear.getStatus()}" />
		  	</td>
		<tr>
		<tr><td>&nbsp;</td></tr>	
	 	<tr>
			<td colspan="2">
				<s:reset value="Clear" id="saveOrUpdateClassYear_0" cssClass="button-gray" theme="simple"/>
				<s:if test="classYear.id == ''">
					<s:submit value="Create" id="saveOrUpdateClassYear_0" cssClass="button-green" theme="simple" />
				</s:if>
				<s:else>
					<s:submit value="Update" id="saveOrUpdateClassYear_0" cssClass="button-green" theme="simple" />
				</s:else>
				<input type="button" value="List" id="saveOrUpdateClassYear_0" class="button-gray" onclick="javascript:showLists('/classYears');" />								
			</td>
		</tr>	
	</table>
	<s:hidden id="id" name="classYear.id"></s:hidden>
	</s:form>
</div>		
